<div class="toolbar">
	<?= Phpr_Form::openTag() ?>
		<?= backend_ctr_button('Add product', 'new_document', url('/shop/products/create')) ?>
		<?= backend_ctr_button('Duplicate', 'duplicate', array('href'=>'#', 'onclick'=>"return duplicate_selected()")) ?>
		<div class="separator">&nbsp;</div>
		<?= backend_ctr_button('Import from CSV', 'document_import', url('/shop/products/import_csv')) ?>
		<?= backend_ctr_button('Export to CSV', 'document_export', array(
			'onclick'=>alt_click_link(url('/shop/products/export_csv/iwork'), url('/shop/products/export_csv')),
			'class'=>'tooltip',
			'rel'=>'Hold down the <strong>ALT</strong> key to export a semicolon separated file')) ?>
		<div class="separator">&nbsp;</div>
		<?= backend_ctr_button('Enable or disable', 'enable', array('href'=>'#', 'onclick'=>"return enable_disable_selected()")) ?>
		<?= backend_ctr_button('Group', 'group_products', array(
			'href'=>'#', 
			'onclick'=>"return group_selected_products()",
			'class'=>'tooltip',
			'rel'=>'Convert selected products to grouped products'
			)) ?>
		<div class="separator">&nbsp;</div>
		<?= backend_ctr_button('Delete', 'delete_document', array('href'=>'#', 'onclick'=>"return delete_selected()")) ?>
		<div class="separator">&nbsp;</div>
		<?= backend_ctr_button('Product groups', 'group', url('/shop/groups')) ?>
		<?= backend_ctr_button('Product types', 'product_types', url('/shop/product_types')) ?>
		<?= backend_ctr_button('Extra option sets', 'table_multiple', url('/shop/extras_sets')) ?>
		<?= backend_ctr_button('Manufacturers', 'manufacturer', url('/shop/manufacturers')) ?>
		<?= backend_ctr_button('Reviews', 'star', url('/shop/reviews')) ?>
		
		<? Backend::$events->fireEvent('shop:onExtendProductsToolbar', $this) ?>
		
		<div class="clear"></div>
	</form>
</div>